﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace Food
{
	class User
	{
		public string FirstName {get;set;}
		public string SecondName {get;set;}
		public string DisplayName {get;set;}
		public string FileName { get; set; }

		public User(XmlNode node)
		{
			XmlElement element = (XmlElement)node;

			FirstName = element.GetAttribute("first_name");
			SecondName = element.GetAttribute("second_name");

			DisplayName = FirstName + " " + SecondName;

			FileName = element.GetAttribute("file_name") + ".xml";

		}
	}
}
